package com.projet.ai;

import cn.hutool.json.JSONUtil;
import com.projet.ai.vo.AIResult;

import java.nio.file.Files;
import java.nio.file.Paths;

public class AiJson {
    public static void main(String[] args) {
        try {
            byte[] bytes = Files.readAllBytes(Paths.get("C:\\Users\\Administrator\\Desktop\\ai\\1742891021467.txt"));
            String json = new String(bytes);
            AIResult r = JSONUtil.toBean(json, AIResult.class);
            System.out.println(r.getSuccess());
            System.out.println(r.getImageSize());

        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }
}
